<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
         splice()
           方法可以通过指定的索引号和个数，提取数组的某个部分
           语法：
             数组名.splice(start[,number]);
             start (必须)：规定开始选取索引号
             number (可选)：元素的个数

            注意：原数组收到影响
        */
        let arr = ['0.0', '1-1', '2，2', '3’3', '4；4', '5=5'];
        let arr1 =arr.splice(4,1);
        console.log(arr1);
        let arr2=arr.splice(1);
        console.log(arr2);
        console.log(arr);
    </script>
</body>
</html>